import re from "../../util/request.js";


/**
 * 
 * @param {number} id 用户id
 * @returns {Promise}
 */
export const fetchOrders = async (id) => {
    return re('order/uid', {id}, "POST");
};

export const order = async (order) => {
    return re("order/add", { ...order }, "POST")
}